$(function () {
    RandomBackgroundImg();
});
function RandomBackgroundImg() {
    var max=2;
    var num = Math.ceil(Math.random()*max);
    var url = "../homeImg/"+num+".jpg";
    $('.home').css("background-image","url("+url+")");
    // $('.home').css("background-repeat","no-repeat");
    $('.home').css("background-size","cover");
    $('.home').css("background-position","center");
}